package com.example.intelligentattendancesystem.service;

import com.example.intelligentattendancesystem.pojo.Leave;
import org.springframework.web.bind.annotation.RequestMapping;

import java.text.ParseException;
import java.util.List;

public interface LeaveService {
    /**
     * 获取请假记录
     * @param userId
     * @return
     */
    List<Leave> getLeaveService(int userId);

    /**
     * 增加请假记录
     * @param leaves
     * @return
     */
    int addLeavesService(List<Leave> leaves);

    int modifyLeaves(List<Leave> leaves);

    List<Leave> getAllLeaveSev() throws ParseException;

    List<Leave> getAllLeaveMon() throws ParseException;

    List<Leave> getAllLeaveAll();
}
